#ifndef WINDOW4_H
#define WINDOW4_H

#include <QMainWindow>
#include <QLabel>
#include <QDesktopWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QtNetwork/QHostInfo>
#include <QtNetwork/QHostAddress>
#include <QKeyEvent>
class Window4 : public QMainWindow
{
    Q_OBJECT
public:
    explicit Window4(QWidget *parent = nullptr);

    //获取屏幕分辨率 网卡信息
    void showSystemMsg();

    //键盘事件方法
    void keyPressEvent(QKeyEvent *event)override;


signals:

public slots:
    //发送url
    void sendUrl();
    //显示本机网络ip地址
    void lookedUp(QHostInfo hostInfo);

private:
    //分辨率
    QLabel * displayLabel;
    QDesktopWidget *desktopWidget;
    //网址label
    QLabel * urlLabel;
    //输入网址
    QLineEdit * urlEdit;
    //查询按钮
    QPushButton * sendBtn;
    //本机网络ip显示
    QLabel * myIpLabel;
};

#endif // WINDOW4_H
